import { lazy } from "react";
import { createBrowserRouter } from 'react-router-dom'

const Home = lazy(() => import('../parge/Home/Home'))
const Detail = lazy(() => import('../parge/Detail/Detail'))

const router = createBrowserRouter([
    {
        path: '/',
        element: <Home></Home>
    }
    ,
    {
        path: '/detail',
        element: <Detail></Detail>
    }
])

export default router